<?php
require_once('Passwords.php');
function getConnection()
{
        global $dbPassword;
        $db = new mysqli('', 'N00001387', $dbPassword, 'N00001387_db' );
        if(!empty($conn->connect_error)) throw new Exception( $conn->connect_error );
        return $db;
}
function RsEscape($conn, $rs)
{
	$cleanRs = array();
	foreach($rs as $key => $value)
	{
		$cleanRs[$key] = $conn->real_escape_string($value);
	}
	//$rs = $cleanRs;
	return $cleanRs;
}
